package bitcounter

import "fmt"

var pc [256]byte

func init() {
	fmt.Println("Hello, this is init function")
	for i := range pc {
		pc[i] = pc[i/2] + byte(i&1)
	}
}

func Count(x byte) byte {
	return pc[x]
}
